مظهر الشكل من خلال وضع الأكواد الخاصة بالليأوت
أكواد الليأوت للست فيو
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.android_examples.getallaudiosdcard_android_examplescom.MainActivity">
<Button
android:id="@+id/button"
android:layout_width="fill_parent"
android:layout_margin="3dp"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:text="Click Here To Show All MP3 Files in ListView"
android:layout_marginTop="10dp"
android:background="#009688"
android:textColor="#fff"/>
<ListView
android:id="@+id/listView1" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_below="@+id/button" />
</RelativeLayout>
المنفست
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android_examples.getallaudiosdcard_android_examplescom">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
عودة إلى القائمة الرئيسية


0 التعليقات :
إرسال تعليق