|
manifestxmlns:android="http://schemas.android.com/apk/
|
bet | 6/8 | Sana | 16.01.2024 | Hajmi | 318,74 Kb. | | #138880 |
Bog'liq Diyorbek kurs ishimanifestxmlns:android="http://schemas.android.com/apk/
res/android"
package="com.example.vipul.filedemo">
<ilova
android_allowBackup="to'g'ri"
android_icon="@mipmap/ic_launcher"
android_label="@string/app_name"
android_theme="@style/AppTheme">
<faoliyat
android_name=".MainActivity"
android_label="@string/app_name">
<niyat-filtr>
<actionandroid:name=
"android.intent.action.MAIN"/>
<categoryandroid:name=
"android.intent.category.LAUNCHER"/>
niyat-filtr>
faoliyat>
ilova>
<uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
manifest>
Biz faqat oldingi deklaratsiyani tashqi xotiraga yozish uchun zarur bo'lgan narsalarni qanday e'lon qilish kerakligini ko'rsatish uchun qilamiz. Endi biz ichki xotiradagi fayl bilan ishlashga o'tamiz.
Dizayn ko'rinishiga o'ting va quyidagi kodda ko'rsatilganidek, ikkita tugmachani qo'shing.
<RelativeLayoutxmlns:android="http://schemas.android.com/
apk/res/android"
xmlns_tools="http://schemas.android.com/tools
"android:layout_width="match_parent"
android_paddingRight="@dimen/activity_horizontal_margin"
android_paddingTop="@dimen/activity_vertical_margin"
android_paddingBottom="@dimen/activity_vertical_margin
"vositalar:context=".Asosiy faoliyat">
<TextViewandroid:text="@string/hello_world"
android_layout_width="o'rash_kontent"
android_layout_height="o'rash_kontent"
android_id="@+id/textView"/>
<tugma
android:layout_width="wrap_content"
android:layout_height="wrap_content" ;
android:text="Fayl yaratish"
android:id="@+id/buttonCreateFile"
|
| |