Tag : android

In my app I use scrollview in main activity to implement fragments. Fragments are called with function in MainActivity.java. Initially scrollview doesn’t have any objects in it and it shows an error “: no speakable text present”(app launches despite an error). I use scrollview because if user tilts phone, he/she wouldn’t be able to see all objects of fragment if fragments are implemented using frameLayout. In my fragment I have multiple textInputLayouts and textViews and button at he bottom. When I tilt phone the app(when main activity with fragment is opened) cr..

Read more

import android.content.ContentValues.TAG import android.os.Bundle import android.os.Handler import android.os.Looper import android.util.Log import android.view.View import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.core.view.GravityCompat import androidx.drawerlayout.widget.DrawerLayout import com.google.android.material.bottomnavigation.BottomNavigationView import com.google.android.material.navigation.NavigationView class MainActivity : AppCompatActivity() { private lateinit var drawerLayout: DrawerLayout private lateinit var navigationView: NavigationView private var backPressedOnce = false private val handler = Handler(Looper.getMainLooper()) private val fragments = listOf( app_home(), ..

Read more

Read more