Browse Source

создание класса

user2 4 years ago
parent
commit
aee9b86625

+ 1 - 1
app/src/main/AndroidManifest.xml

@@ -10,7 +10,7 @@
         android:supportsRtl="true"
         android:theme="@style/Theme.AppCompat.NoActionBar">
         <activity android:name=".kyrs"></activity>
-        <activity android:name=".proekt2" />
+        <activity android:name=".bank" />
         <activity android:name=".MainActivity">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />

+ 1 - 1
app/src/main/java/su/ktk/proekt2608/MainActivity.kt

@@ -13,7 +13,7 @@ class MainActivity : AppCompatActivity() {
     }
 
     fun buttonkyrsClick(view: View) {
-        val intent= Intent(this,proekt2::class.java)
+        val intent= Intent(this,bank::class.java)
         startActivity(intent)
     }
     fun buttonBanksClick(view: View) {

+ 11 - 0
app/src/main/java/su/ktk/proekt2608/Valuta.kt

@@ -0,0 +1,11 @@
+package su.ktk.proekt2608
+
+import android.renderscript.Sampler
+
+data class Valuta (
+    val Name:String?=null,
+    val Value:String?=null,
+    val CharCode:String?=null,
+    val Previous:String?=null
+
+    )

+ 1 - 1
app/src/main/java/su/ktk/proekt2608/proekt2.kt → app/src/main/java/su/ktk/proekt2608/bank.kt

@@ -3,7 +3,7 @@ package su.ktk.proekt2608
 import androidx.appcompat.app.AppCompatActivity
 import android.os.Bundle
 
-class proekt2 : AppCompatActivity() {
+class bank : AppCompatActivity() {
 
     override fun onCreate(savedInstanceState: Bundle?) {
         super.onCreate(savedInstanceState)

+ 1 - 1
app/src/main/res/layout/activity_proekt2.xml

@@ -4,7 +4,7 @@
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    tools:context=".proekt2">
+    tools:context=".bank">
 <TextView
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"