Prac_2A(AMP)
Practical_2A
Activity_main.xml
Activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/yellow"
android:backgroundTint="@drawable/img"
android:fontFamily="serif-monospace"
android:text="Hello World!_702"
android:textColor="@color/purple"
android:textColorHighlight="@color/orange"
android:textSize="35dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/yellow"
android:text="@string/batman"
android:textColor="@color/black"
android:textColorHighlight="@color/purple"
android:textSize="30dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="2dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
Colors.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="orange">#FF5722</color>
<color name="purple">#673AB7</color>
<color name="yellow">#FFEB3B</color>
</resources>
STring.xml
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="app_name">TYIT_702_6-1-25</string>
<string name="app_name2">702_allen</string>
<string name="batman" >🔥---I`m_Batman---🦇</string>
</resources>
Android_manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher_batman"
android:label="@string/app_name2"
android:roundIcon="@mipmap/ic_launcher_batman_round"
android:supportsRtl="true"
android:theme="@style/Theme.TYIT_702_6125"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Comments
Post a Comment