This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Column(modifier = Modifier.padding(16.dp)) { | |
var approved by remember { mutableStateOf(false) } | |
var frontCamera by remember { mutableStateOf(false) } | |
val color = if (approved) Color.Green else Color.Red | |
val image = if (frontCamera) Icons.Filled.AccountCircle else Icons.Filled.ShoppingCart | |
Button(modifier = Modifier.width(120.dp), onClick = { approved = !approved }) { | |
Text("Click me!") | |
} | |
Box { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.leonett.photofeed.ui.feature.account | |
import android.content.Context | |
import android.content.Intent | |
import android.view.View | |
import androidx.lifecycle.Observer | |
import androidx.lifecycle.ViewModelProvider | |
import androidx.navigation.fragment.findNavController | |
import com.bumptech.glide.Glide | |
import com.bumptech.glide.request.RequestOptions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ListActivity extends AppCompatActivity { | |
PatientController pC; | |
ListView pList; | |
PatientCursorAdapter pca; | |
Patient pat; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.daniel.testapplication.ui.base; | |
import android.support.v7.widget.RecyclerView; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created by Daniel Leonett ([email protected]) on 20/6/2017. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class DateUtils { | |
private static final String TAG = DateUtils.class.getSimpleName(); | |
public static String toddmmYYYY(Date date) { | |
if (date != null) { | |
SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); | |
return dateFormat.format(date); | |
} | |
return null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
// ... | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
// ... |