点击第一个活动的按钮后,我想进行第二次活动。但在查看第二个活动布局之前,我想在特定时间内显示第三个布局。
答案 0 :(得分:1)
将framelayout放到第二个活动布局中,并在特定时间后隐藏它。你可以使用类似的东西:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div>
<form>
<div class="form-group">
<i class="fa fa-key" aria-hidden="true"></i>
<label for="password1">Password</label>
<input id="password1" type="password" class="form-control" placeholder="Enter password" name="password1">
</div>
<div class="form-group">
<i class="fa fa-key" aria-hidden="true"></i>
<label for="password2">Confirm password</label>
<input id="password2" type="password" class="form-control" placeholder="Enter password" name="password">
</div>
<div class="form-group">
<i class="fa fa-picture-o" aria-hidden="true"></i>
<label for="img">Image</label>
<input type="text" class="form-control" placeholder="Enter image URL" name="image">
</div>
<button id="submit-login" type="submit" class="btn btn-primary btn-lg">Signup</button>
</form>
</div>
<button type="button" id="validate">Validate</button>
答案 1 :(得分:0)
试试这个。在secondActivity。
new Handler().postDelayed(new Runnable() {
/*
* Showing splash screen with a timer. This will be useful when you
* want to show case your app logo / company
*/
@Override
public void run() {
// This method will be executed once the timer is over
// Start your app main activity
// Hide the view of second activity and show the view of 3rd layout and after specific time hide 3rd view and show activity view here
// close this activity
finish();
}
}, 3000);